import request from '@/utils/request'
// 获取列表
export function list (params) {
    return request({
        url: '/sys/dept/list',
        method: 'get',
        params: params
    })
}
// 获取列表
export function select (params) {
    return request({
        url: '/sys/dept/select',
        method: 'get',
        params: params
    })
}
// 获取信息
export function info (id) {
    return request({
        url: '/sys/dept/' + id,
        method: 'get'
    })
}

// 添加
export function add (params) {
    return request({
        url: '/sys/dept',
        method: 'post',
        data: params
    })
}

// 修改
export function update (params) {
    return request({
        url: '/sys/dept',
        method: 'put',
        data: params
    })
}
// 删除
export function del (params) {
    return request({
        url: '/sys/dept',
        method: 'delete',
        data: params
    })
}

